#include "algostuff.h"
using namespace std;

void generate1()
{
	list<int> coll;

	// insert five random numbers
	generate_n(back_inserter(coll), 5, rand);
	PRINT_ELEMENTS(coll);

	// overwrite five new random numbers
	generate(coll.begin(), coll.end(), rand);
	PRINT_ELEMENTS(coll);
}